import axios from '@/utils/request'

export default{
    //登录
    login(data){
        return axios.post("user/login",data)
    },
    //请求用户信息
    getUserData(){
        return axios.get(`user/info?token=${sessionStorage.getItem("token")}`)
    }
}